

import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 渠道建设项目分页查询
export const searchConstruction = (_params) => axios.get(`${SERVER.CMSCLOUD_CHANNEL}/construction/construction`, {params:_params,menuId:'-1'});

// 渠道建设项目新增
export const insertConstruction = params => axios.post(`${SERVER.CMSCLOUD_CHANNEL}/construction/construction`,  params );


// 渠道建设项目修改
export const updataConstruction = (params, id) => axios.put(`${SERVER.CMSCLOUD_CHANNEL}/construction/construction/${id}`,  params );


// 获取渠道建设项目列表(不分页)
export const searchConstructionList = (_params) => axios.get(`${SERVER.CMSCLOUD_CHANNEL}/construction/construction/list/all`, {params:_params,menuId:'-1'});
